import service from './request'

//获取讲师个人的排课信息
export function getUserCoursePlan() {
    return service.get('/usercourseplans')
}

//调整代课信息
export function adjustCourse(data) {
    data.change_class.sort()
    data.original_class.sort()
    return service.put('/usercourseplans',data)
}

//获取调代课信息
export function getAdjustCourse(params) {
    return service.get('/adjuct-classtimes')
}

//审核调代课信息
export function editAdjustCourseState(id,data) {
    return service.put('/adjuct-classtimes/'+id,data)
}
//获取用户当天的课节信息
export function getClassSection() {
    return service.get('/class-sections')
}
